import React, { Component } from 'react'
import { Text, StyleSheet, View } from 'react-native'
import VectorImage from 'react-native-vector-image';

export default class index extends Component {
  render() {
    return (
      <View style={styles.container}>
        {/* 
            注意: 使用VectorImage组件,需要重新编译打包,才能正常展示 
            yarn react-native-vector-image generate 生成对应的文件,才能正常使用
            具体使用方法请参考 https://github.com/oblador/react-native-vector-icons
        */}
        <VectorImage source={require('../../public/icon/home.svg')}/>
        <VectorImage source={require('../../public/icon/Newbie.svg')}/>
      </View>
    )
  }
}

const styles = StyleSheet.create({
    container:{
        flex: 1, 
        justifyContent: 'center', 
        alignItems: 'center'
    }
})
